import request from '@/utils/request'
// 获取类目
export function homeCategoryHead () {
  return request({
    url: '/home/category/head'
  })
}
// 一级分类
export function category (id) {
  return request({
    url: '/category',
    params: { id }
  })
}
// 二级类目筛选条件
export function categorySubFilter (id) {
  return request({
    url: '/category/sub/filter',
    params: { id }
  })
}
// 商品列表
export function categoryGoods (data) {
  return request({
    url: '/category/goods',
    method: 'post',
    data
  })
}
